//
//  LWWeatherCtrl.m
//  laowu
//
//  Created by 尹桥印 on 15/5/13.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "LWWeatherCtrl.h"

@interface LWWeatherCtrl ()
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation LWWeatherCtrl

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setTitle:@"天气"];
    NSString *url = [NSString stringWithFormat:@"%@api/adv/weather.rhtml?city=%@",BASE_URL,[UserDefaultsHelper stringForKey:kLocationAddressCity]];
    url = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    NSLog(@"URL=%@",url);
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
}

@end
